package com.example.demo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
import java.util.List;

public interface MyService {
    /**
     * 插入一条记录
     *
     * @param entity 实体对象
     */
    int save(Object entity);

    List<Object> list(QueryWrapper queryWrapper);

    /**
     * 根据 ID 删除
     *
     * @param id 主键ID
     */
    int delete(String model,List<Long> ids);

    int update(Object entity);

    Object get(String model,Long id);

    void downLoad(QueryWrapper queryWrapper, HttpServletResponse response);

    List upload(String model, MultipartFile file);

}
